package com.dingding.service.user.facade.evaluate;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.common.core.beans.OrderComment;
import com.dingding.common.core.beans.special.SpecialOrderComment;
import com.dingding.facade.user.service.evaluate.IOrderCommentFacade;
import com.dingding.service.user.core.dao.IOrderCommentDao;
import com.dingding.service.user.core.dao.SpecialOrderCommentDao;

/**
 * @ClassName: OrderCommentFacadeImpl 
 * @Description: 订单评论接口实现类
 * @author YHQ
 * @date 2016年5月12日 上午11:18:22
 */
@Component("orderCommentFacade")
public class OrderCommentFacadeImpl implements IOrderCommentFacade {

	@Resource(name = "orderCommentDao")
	private IOrderCommentDao orderCommentDao;
	
	@Resource(name="specialOrderCommentDao")
	private SpecialOrderCommentDao specialOrderCommentDao;
	
	/**
	 * @Title: addOrderCommentInfo 
	 * @Description: 添加订单评论信息
	 * @param orderComment 乘客评论内容
	 * @author YHQ 
	 * @return boolean    true:添加成功  false:添加失败
	 */
	@Override
	public boolean addOrderCommentInfo(OrderComment orderComment) {
		
		return orderCommentDao.addOrderCommentInfo(orderComment);
	}
	
	
	/**
	 * 
	 * @Title: addSpecialOrderComment 
	 * @Description: 添加专车订单评论信息
	 * param  specialOrderComment 乘客评论内容
	 * @return boolean 
	 * @author SUNZHICHENG  
	 * @date  2016年8月31日 下午4:53:51
	 * @since v2.4.0
	 */
	@Override
	public boolean addSpecialOrderComment(SpecialOrderComment specialOrderComment) {
		
		return specialOrderCommentDao.addSpecialOrderComment(specialOrderComment);
	}
	
	

}
